//获取应用实例
const app = getApp()
Page({
	data: {
		imgpath:app.setting.apiimgpath,
		goodList:{},
		integral:0
	},
	onLoad:function(){
		var that = this;
		//会员积分查询  
		app.request('/api/Member/getPoint', {}, function(res){
			if(res.code == '0'){
				//更新数据
				that.setData({
					integral:res.data.JF
				});
			}
		});		
		//商品列表
		app.request('/api/Goods/getGoodsList', {}, function(res){
			if(res.code == '0'){
				//更新数据
				that.setData({
					goodList:res.data
				});
			}
		});	
	},
	onShareAppMessage(res){
		return{
			title:'四海唐人街-积分商城',
			path:'/pages/integralmall/integralmall',
			imageUrl:'/images/44.jpg'
		}
	}
})